'use strict';
/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller, middleware } = app;
  router.post('/api/upload/file', controller.uploadcos.file);
  router.get('/api/device/list', controller.device.allList);
  router.resources('device', '/api/device', controller.device);
  router.resources('stock', '/api/stock', controller.stock);
  router.resources('user', '/api/user', controller.user);
};
